


using System;
using SubSonic.Schema;
using System.Collections.Generic;
using SubSonic.DataProviders;
using System.Data;

namespace Eacademy.Domain.Entities {
	
        /// <summary>
        /// Table: acount_permission
        /// Primary Key: accountpermission_id
        /// </summary>

        public class AcountPermissionTable: DatabaseTable {
            
            public AcountPermissionTable(IDataProvider provider):base("acount_permission",provider){
                ClassName = "AcountPermissionBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("accountpermission_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("module_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("module_permission_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn AccountpermissionId{
                get{
                    return this.GetColumn("accountpermission_id");
                }
            }
				
   			public static string AccountpermissionIdColumn{
			      get{
        			return "accountpermission_id";
      			}
		    }
            
            public IColumn ModuleId{
                get{
                    return this.GetColumn("module_id");
                }
            }
				
   			public static string ModuleIdColumn{
			      get{
        			return "module_id";
      			}
		    }
            
            public IColumn ModulePermissionId{
                get{
                    return this.GetColumn("module_permission_id");
                }
            }
				
   			public static string ModulePermissionIdColumn{
			      get{
        			return "module_permission_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: assessment
        /// Primary Key: assessment_id
        /// </summary>

        public class AssessmentTable: DatabaseTable {
            
            public AssessmentTable(IDataProvider provider):base("assessment",provider){
                ClassName = "AssessmentBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("assessment_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }

            public IColumn AssessmentId{
                get{
                    return this.GetColumn("assessment_id");
                }
            }
				
   			public static string AssessmentIdColumn{
			      get{
        			return "assessment_id";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "description";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: assessment_questions
        /// Primary Key: assessment_question_id
        /// </summary>

        public class AssessmentQuestionsTable: DatabaseTable {
            
            public AssessmentQuestionsTable(IDataProvider provider):base("assessment_questions",provider){
                ClassName = "AssessmentQuestionBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("assessment_question_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("assessment_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("question", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });
                    
                
                
            }

            public IColumn AssessmentQuestionId{
                get{
                    return this.GetColumn("assessment_question_id");
                }
            }
				
   			public static string AssessmentQuestionIdColumn{
			      get{
        			return "assessment_question_id";
      			}
		    }
            
            public IColumn AssessmentId{
                get{
                    return this.GetColumn("assessment_id");
                }
            }
				
   			public static string AssessmentIdColumn{
			      get{
        			return "assessment_id";
      			}
		    }
            
            public IColumn Question{
                get{
                    return this.GetColumn("question");
                }
            }
				
   			public static string QuestionColumn{
			      get{
        			return "question";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: assessment_ratings
        /// Primary Key: assessment_rating_id
        /// </summary>

        public class AssessmentRatingsTable: DatabaseTable {
            
            public AssessmentRatingsTable(IDataProvider provider):base("assessment_ratings",provider){
                ClassName = "AssessmentRatingBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("assessment_rating_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("assessment_student_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("assessment_question_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("rating", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn AssessmentRatingId{
                get{
                    return this.GetColumn("assessment_rating_id");
                }
            }
				
   			public static string AssessmentRatingIdColumn{
			      get{
        			return "assessment_rating_id";
      			}
		    }
            
            public IColumn AssessmentStudentId{
                get{
                    return this.GetColumn("assessment_student_id");
                }
            }
				
   			public static string AssessmentStudentIdColumn{
			      get{
        			return "assessment_student_id";
      			}
		    }
            
            public IColumn AssessmentQuestionId{
                get{
                    return this.GetColumn("assessment_question_id");
                }
            }
				
   			public static string AssessmentQuestionIdColumn{
			      get{
        			return "assessment_question_id";
      			}
		    }
            
            public IColumn Rating{
                get{
                    return this.GetColumn("rating");
                }
            }
				
   			public static string RatingColumn{
			      get{
        			return "rating";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: assessment_student
        /// Primary Key: assessment_student_id
        /// </summary>

        public class AssessmentStudentTable: DatabaseTable {
            
            public AssessmentStudentTable(IDataProvider provider):base("assessment_student",provider){
                ClassName = "AssessmentStudentBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("assessment_student_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("assessment_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("student_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("score", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn AssessmentStudentId{
                get{
                    return this.GetColumn("assessment_student_id");
                }
            }
				
   			public static string AssessmentStudentIdColumn{
			      get{
        			return "assessment_student_id";
      			}
		    }
            
            public IColumn AssessmentId{
                get{
                    return this.GetColumn("assessment_id");
                }
            }
				
   			public static string AssessmentIdColumn{
			      get{
        			return "assessment_id";
      			}
		    }
            
            public IColumn StudentId{
                get{
                    return this.GetColumn("student_id");
                }
            }
				
   			public static string StudentIdColumn{
			      get{
        			return "student_id";
      			}
		    }
            
            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
            public IColumn Score{
                get{
                    return this.GetColumn("score");
                }
            }
				
   			public static string ScoreColumn{
			      get{
        			return "score";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: assignments
        /// Primary Key: assignment_id
        /// </summary>

        public class AssignmentsTable: DatabaseTable {
            
            public AssignmentsTable(IDataProvider provider):base("assignments",provider){
                ClassName = "AssignmentBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("assignment_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("assignment", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("date_due", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("date_posted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("date_modified", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("files", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });
                    
                
                
            }

            public IColumn AssignmentId{
                get{
                    return this.GetColumn("assignment_id");
                }
            }
				
   			public static string AssignmentIdColumn{
			      get{
        			return "assignment_id";
      			}
		    }
            
            public IColumn Title{
                get{
                    return this.GetColumn("title");
                }
            }
				
   			public static string TitleColumn{
			      get{
        			return "title";
      			}
		    }
            
            public IColumn Assignment{
                get{
                    return this.GetColumn("assignment");
                }
            }
				
   			public static string AssignmentColumn{
			      get{
        			return "assignment";
      			}
		    }
            
            public IColumn DateDue{
                get{
                    return this.GetColumn("date_due");
                }
            }
				
   			public static string DateDueColumn{
			      get{
        			return "date_due";
      			}
		    }
            
            public IColumn DatePosted{
                get{
                    return this.GetColumn("date_posted");
                }
            }
				
   			public static string DatePostedColumn{
			      get{
        			return "date_posted";
      			}
		    }
            
            public IColumn DateModified{
                get{
                    return this.GetColumn("date_modified");
                }
            }
				
   			public static string DateModifiedColumn{
			      get{
        			return "date_modified";
      			}
		    }
            
            public IColumn Files{
                get{
                    return this.GetColumn("files");
                }
            }
				
   			public static string FilesColumn{
			      get{
        			return "files";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: assignments_subjects
        /// Primary Key: assignments_subject_id
        /// </summary>

        public class AssignmentsSubjectsTable: DatabaseTable {
            
            public AssignmentsSubjectsTable(IDataProvider provider):base("assignments_subjects",provider){
                ClassName = "AssignmentsSubjectBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("assignments_subject_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("assignment_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn AssignmentsSubjectId{
                get{
                    return this.GetColumn("assignments_subject_id");
                }
            }
				
   			public static string AssignmentsSubjectIdColumn{
			      get{
        			return "assignments_subject_id";
      			}
		    }
            
            public IColumn AssignmentId{
                get{
                    return this.GetColumn("assignment_id");
                }
            }
				
   			public static string AssignmentIdColumn{
			      get{
        			return "assignment_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: choices
        /// Primary Key: choice_id
        /// </summary>

        public class ChoicesTable: DatabaseTable {
            
            public ChoicesTable(IDataProvider provider):base("choices",provider){
                ClassName = "ChoiceBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("choice_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("question_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("choice", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 450
                });

                Columns.Add(new DatabaseColumn("is_answer", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn ChoiceId{
                get{
                    return this.GetColumn("choice_id");
                }
            }
				
   			public static string ChoiceIdColumn{
			      get{
        			return "choice_id";
      			}
		    }
            
            public IColumn QuestionId{
                get{
                    return this.GetColumn("question_id");
                }
            }
				
   			public static string QuestionIdColumn{
			      get{
        			return "question_id";
      			}
		    }
            
            public IColumn Choice{
                get{
                    return this.GetColumn("choice");
                }
            }
				
   			public static string ChoiceColumn{
			      get{
        			return "choice";
      			}
		    }
            
            public IColumn IsAnswer{
                get{
                    return this.GetColumn("is_answer");
                }
            }
				
   			public static string IsAnswerColumn{
			      get{
        			return "is_answer";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat
        /// Primary Key: id
        /// </summary>

        public class CometchatTable: DatabaseTable {
            
            public CometchatTable(IDataProvider provider):base("cometchat",provider){
                ClassName = "CometchatBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("from", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("to", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("sent", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("read", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("direction", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Id{
                get{
                    return this.GetColumn("id");
                }
            }
				
   			public static string IdColumn{
			      get{
        			return "id";
      			}
		    }
            
            public IColumn From{
                get{
                    return this.GetColumn("from");
                }
            }
				
   			public static string FromColumn{
			      get{
        			return "from";
      			}
		    }
            
            public IColumn To{
                get{
                    return this.GetColumn("to");
                }
            }
				
   			public static string ToColumn{
			      get{
        			return "to";
      			}
		    }
            
            public IColumn Message{
                get{
                    return this.GetColumn("message");
                }
            }
				
   			public static string MessageColumn{
			      get{
        			return "message";
      			}
		    }
            
            public IColumn Sent{
                get{
                    return this.GetColumn("sent");
                }
            }
				
   			public static string SentColumn{
			      get{
        			return "sent";
      			}
		    }
            
            public IColumn Read{
                get{
                    return this.GetColumn("read");
                }
            }
				
   			public static string ReadColumn{
			      get{
        			return "read";
      			}
		    }
            
            public IColumn Direction{
                get{
                    return this.GetColumn("direction");
                }
            }
				
   			public static string DirectionColumn{
			      get{
        			return "direction";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_announcements
        /// Primary Key: id
        /// </summary>

        public class CometchatAnnouncementsTable: DatabaseTable {
            
            public CometchatAnnouncementsTable(IDataProvider provider):base("cometchat_announcements",provider){
                ClassName = "CometchatAnnouncementBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("announcement", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("time", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("to", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Id{
                get{
                    return this.GetColumn("id");
                }
            }
				
   			public static string IdColumn{
			      get{
        			return "id";
      			}
		    }
            
            public IColumn Announcement{
                get{
                    return this.GetColumn("announcement");
                }
            }
				
   			public static string AnnouncementColumn{
			      get{
        			return "announcement";
      			}
		    }
            
            public IColumn Time{
                get{
                    return this.GetColumn("time");
                }
            }
				
   			public static string TimeColumn{
			      get{
        			return "time";
      			}
		    }
            
            public IColumn To{
                get{
                    return this.GetColumn("to");
                }
            }
				
   			public static string ToColumn{
			      get{
        			return "to";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_chatroommessages
        /// Primary Key: id
        /// </summary>

        public class CometchatChatroommessagesTable: DatabaseTable {
            
            public CometchatChatroommessagesTable(IDataProvider provider):base("cometchat_chatroommessages",provider){
                ClassName = "CometchatChatroommessageBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("userid", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("chatroomid", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("sent", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Id{
                get{
                    return this.GetColumn("id");
                }
            }
				
   			public static string IdColumn{
			      get{
        			return "id";
      			}
		    }
            
            public IColumn Userid{
                get{
                    return this.GetColumn("userid");
                }
            }
				
   			public static string UseridColumn{
			      get{
        			return "userid";
      			}
		    }
            
            public IColumn Chatroomid{
                get{
                    return this.GetColumn("chatroomid");
                }
            }
				
   			public static string ChatroomidColumn{
			      get{
        			return "chatroomid";
      			}
		    }
            
            public IColumn Message{
                get{
                    return this.GetColumn("message");
                }
            }
				
   			public static string MessageColumn{
			      get{
        			return "message";
      			}
		    }
            
            public IColumn Sent{
                get{
                    return this.GetColumn("sent");
                }
            }
				
   			public static string SentColumn{
			      get{
        			return "sent";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_chatrooms
        /// Primary Key: id
        /// </summary>

        public class CometchatChatroomsTable: DatabaseTable {
            
            public CometchatChatroomsTable(IDataProvider provider):base("cometchat_chatrooms",provider){
                ClassName = "CometchatChatroomBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 255
                });

                Columns.Add(new DatabaseColumn("lastactivity", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("createdby", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("password", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 255
                });

                Columns.Add(new DatabaseColumn("type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Id{
                get{
                    return this.GetColumn("id");
                }
            }
				
   			public static string IdColumn{
			      get{
        			return "id";
      			}
		    }
            
            public IColumn Name{
                get{
                    return this.GetColumn("name");
                }
            }
				
   			public static string NameColumn{
			      get{
        			return "name";
      			}
		    }
            
            public IColumn Lastactivity{
                get{
                    return this.GetColumn("lastactivity");
                }
            }
				
   			public static string LastactivityColumn{
			      get{
        			return "lastactivity";
      			}
		    }
            
            public IColumn Createdby{
                get{
                    return this.GetColumn("createdby");
                }
            }
				
   			public static string CreatedbyColumn{
			      get{
        			return "createdby";
      			}
		    }
            
            public IColumn Password{
                get{
                    return this.GetColumn("password");
                }
            }
				
   			public static string PasswordColumn{
			      get{
        			return "password";
      			}
		    }
            
            public IColumn Type{
                get{
                    return this.GetColumn("type");
                }
            }
				
   			public static string TypeColumn{
			      get{
        			return "type";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_chatrooms_users
        /// Primary Key: userid
        /// </summary>

        public class CometchatChatroomsUsersTable: DatabaseTable {
            
            public CometchatChatroomsUsersTable(IDataProvider provider):base("cometchat_chatrooms_users",provider){
                ClassName = "CometchatChatroomsUserBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("userid", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("chatroomid", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("lastactivity", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Userid{
                get{
                    return this.GetColumn("userid");
                }
            }
				
   			public static string UseridColumn{
			      get{
        			return "userid";
      			}
		    }
            
            public IColumn Chatroomid{
                get{
                    return this.GetColumn("chatroomid");
                }
            }
				
   			public static string ChatroomidColumn{
			      get{
        			return "chatroomid";
      			}
		    }
            
            public IColumn Lastactivity{
                get{
                    return this.GetColumn("lastactivity");
                }
            }
				
   			public static string LastactivityColumn{
			      get{
        			return "lastactivity";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_messages_old
        /// Primary Key: id
        /// </summary>

        public class CometchatMessagesOldTable: DatabaseTable {
            
            public CometchatMessagesOldTable(IDataProvider provider):base("cometchat_messages_old",provider){
                ClassName = "CometchatMessagesOldBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("from", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("to", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("sent", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("read", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("direction", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Id{
                get{
                    return this.GetColumn("id");
                }
            }
				
   			public static string IdColumn{
			      get{
        			return "id";
      			}
		    }
            
            public IColumn From{
                get{
                    return this.GetColumn("from");
                }
            }
				
   			public static string FromColumn{
			      get{
        			return "from";
      			}
		    }
            
            public IColumn To{
                get{
                    return this.GetColumn("to");
                }
            }
				
   			public static string ToColumn{
			      get{
        			return "to";
      			}
		    }
            
            public IColumn Message{
                get{
                    return this.GetColumn("message");
                }
            }
				
   			public static string MessageColumn{
			      get{
        			return "message";
      			}
		    }
            
            public IColumn Sent{
                get{
                    return this.GetColumn("sent");
                }
            }
				
   			public static string SentColumn{
			      get{
        			return "sent";
      			}
		    }
            
            public IColumn Read{
                get{
                    return this.GetColumn("read");
                }
            }
				
   			public static string ReadColumn{
			      get{
        			return "read";
      			}
		    }
            
            public IColumn Direction{
                get{
                    return this.GetColumn("direction");
                }
            }
				
   			public static string DirectionColumn{
			      get{
        			return "direction";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_status
        /// Primary Key: userid
        /// </summary>

        public class CometchatStatusTable: DatabaseTable {
            
            public CometchatStatusTable(IDataProvider provider):base("cometchat_status",provider){
                ClassName = "CometchatStatusBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("userid", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("status", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 9
                });

                Columns.Add(new DatabaseColumn("typingto", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("typingtime", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Userid{
                get{
                    return this.GetColumn("userid");
                }
            }
				
   			public static string UseridColumn{
			      get{
        			return "userid";
      			}
		    }
            
            public IColumn Message{
                get{
                    return this.GetColumn("message");
                }
            }
				
   			public static string MessageColumn{
			      get{
        			return "message";
      			}
		    }
            
            public IColumn Status{
                get{
                    return this.GetColumn("status");
                }
            }
				
   			public static string StatusColumn{
			      get{
        			return "status";
      			}
		    }
            
            public IColumn Typingto{
                get{
                    return this.GetColumn("typingto");
                }
            }
				
   			public static string TypingtoColumn{
			      get{
        			return "typingto";
      			}
		    }
            
            public IColumn Typingtime{
                get{
                    return this.GetColumn("typingtime");
                }
            }
				
   			public static string TypingtimeColumn{
			      get{
        			return "typingtime";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: cometchat_videochatsessions
        /// Primary Key: username
        /// </summary>

        public class CometchatVideochatsessionsTable: DatabaseTable {
            
            public CometchatVideochatsessionsTable(IDataProvider provider):base("cometchat_videochatsessions",provider){
                ClassName = "CometchatVideochatsessionBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("username", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 255
                });

                Columns.Add(new DatabaseColumn("identity", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 255
                });

                Columns.Add(new DatabaseColumn("timestamp", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Username{
                get{
                    return this.GetColumn("username");
                }
            }
				
   			public static string UsernameColumn{
			      get{
        			return "username";
      			}
		    }
            
            public IColumn Identity{
                get{
                    return this.GetColumn("identity");
                }
            }
				
   			public static string IdentityColumn{
			      get{
        			return "identity";
      			}
		    }
            
            public IColumn Timestamp{
                get{
                    return this.GetColumn("timestamp");
                }
            }
				
   			public static string TimestampColumn{
			      get{
        			return "timestamp";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: elmah_error
        /// Primary Key: Sequence
        /// </summary>

        public class ElmahErrorTable: DatabaseTable {
            
            public ElmahErrorTable(IDataProvider provider):base("elmah_error",provider){
                ClassName = "ElmahErrorBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("ErrorId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiStringFixedLength,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 36
                });

                Columns.Add(new DatabaseColumn("Application", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 60
                });

                Columns.Add(new DatabaseColumn("Host", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });

                Columns.Add(new DatabaseColumn("Source", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 60
                });

                Columns.Add(new DatabaseColumn("Message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("User", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("StatusCode", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("TimeUtc", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Sequence", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("AllXml", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });
                    
                
                
            }

            public IColumn ErrorId{
                get{
                    return this.GetColumn("ErrorId");
                }
            }
				
   			public static string ErrorIdColumn{
			      get{
        			return "ErrorId";
      			}
		    }
            
            public IColumn Application{
                get{
                    return this.GetColumn("Application");
                }
            }
				
   			public static string ApplicationColumn{
			      get{
        			return "Application";
      			}
		    }
            
            public IColumn Host{
                get{
                    return this.GetColumn("Host");
                }
            }
				
   			public static string HostColumn{
			      get{
        			return "Host";
      			}
		    }
            
            public IColumn Type{
                get{
                    return this.GetColumn("Type");
                }
            }
				
   			public static string TypeColumn{
			      get{
        			return "Type";
      			}
		    }
            
            public IColumn Source{
                get{
                    return this.GetColumn("Source");
                }
            }
				
   			public static string SourceColumn{
			      get{
        			return "Source";
      			}
		    }
            
            public IColumn Message{
                get{
                    return this.GetColumn("Message");
                }
            }
				
   			public static string MessageColumn{
			      get{
        			return "Message";
      			}
		    }
            
            public IColumn User{
                get{
                    return this.GetColumn("User");
                }
            }
				
   			public static string UserColumn{
			      get{
        			return "User";
      			}
		    }
            
            public IColumn StatusCode{
                get{
                    return this.GetColumn("StatusCode");
                }
            }
				
   			public static string StatusCodeColumn{
			      get{
        			return "StatusCode";
      			}
		    }
            
            public IColumn TimeUtc{
                get{
                    return this.GetColumn("TimeUtc");
                }
            }
				
   			public static string TimeUtcColumn{
			      get{
        			return "TimeUtc";
      			}
		    }
            
            public IColumn Sequence{
                get{
                    return this.GetColumn("Sequence");
                }
            }
				
   			public static string SequenceColumn{
			      get{
        			return "Sequence";
      			}
		    }
            
            public IColumn AllXml{
                get{
                    return this.GetColumn("AllXml");
                }
            }
				
   			public static string AllXmlColumn{
			      get{
        			return "AllXml";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: friends
        /// Primary Key: id
        /// </summary>

        public class FriendsTable: DatabaseTable {
            
            public FriendsTable(IDataProvider provider):base("friends",provider){
                ClassName = "FriendBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("toid", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("fromid", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn Id{
                get{
                    return this.GetColumn("id");
                }
            }
				
   			public static string IdColumn{
			      get{
        			return "id";
      			}
		    }
            
            public IColumn Toid{
                get{
                    return this.GetColumn("toid");
                }
            }
				
   			public static string ToidColumn{
			      get{
        			return "toid";
      			}
		    }
            
            public IColumn Fromid{
                get{
                    return this.GetColumn("fromid");
                }
            }
				
   			public static string FromidColumn{
			      get{
        			return "fromid";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: glossary
        /// Primary Key: term_id
        /// </summary>

        public class GlossaryTable: DatabaseTable {
            
            public GlossaryTable(IDataProvider provider):base("glossary",provider){
                ClassName = "GlossaryBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("term_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("term", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("definition", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });
                    
                
                
            }

            public IColumn TermId{
                get{
                    return this.GetColumn("term_id");
                }
            }
				
   			public static string TermIdColumn{
			      get{
        			return "term_id";
      			}
		    }
            
            public IColumn Term{
                get{
                    return this.GetColumn("term");
                }
            }
				
   			public static string TermColumn{
			      get{
        			return "term";
      			}
		    }
            
            public IColumn Definition{
                get{
                    return this.GetColumn("definition");
                }
            }
				
   			public static string DefinitionColumn{
			      get{
        			return "definition";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: lessons
        /// Primary Key: lesson_id
        /// </summary>

        public class LessonsTable: DatabaseTable {
            
            public LessonsTable(IDataProvider provider):base("lessons",provider){
                ClassName = "LessonBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("lesson_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("lesson", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("date_posted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("date_modified", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("files", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });
                    
                
                
            }

            public IColumn LessonId{
                get{
                    return this.GetColumn("lesson_id");
                }
            }
				
   			public static string LessonIdColumn{
			      get{
        			return "lesson_id";
      			}
		    }
            
            public IColumn Title{
                get{
                    return this.GetColumn("title");
                }
            }
				
   			public static string TitleColumn{
			      get{
        			return "title";
      			}
		    }
            
            public IColumn Lesson{
                get{
                    return this.GetColumn("lesson");
                }
            }
				
   			public static string LessonColumn{
			      get{
        			return "lesson";
      			}
		    }
            
            public IColumn DatePosted{
                get{
                    return this.GetColumn("date_posted");
                }
            }
				
   			public static string DatePostedColumn{
			      get{
        			return "date_posted";
      			}
		    }
            
            public IColumn DateModified{
                get{
                    return this.GetColumn("date_modified");
                }
            }
				
   			public static string DateModifiedColumn{
			      get{
        			return "date_modified";
      			}
		    }
            
            public IColumn Files{
                get{
                    return this.GetColumn("files");
                }
            }
				
   			public static string FilesColumn{
			      get{
        			return "files";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: lessons_subjects
        /// Primary Key: lessons_subject_id
        /// </summary>

        public class LessonsSubjectsTable: DatabaseTable {
            
            public LessonsSubjectsTable(IDataProvider provider):base("lessons_subjects",provider){
                ClassName = "LessonsSubjectBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("lessons_subject_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("lesson_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn LessonsSubjectId{
                get{
                    return this.GetColumn("lessons_subject_id");
                }
            }
				
   			public static string LessonsSubjectIdColumn{
			      get{
        			return "lessons_subject_id";
      			}
		    }
            
            public IColumn LessonId{
                get{
                    return this.GetColumn("lesson_id");
                }
            }
				
   			public static string LessonIdColumn{
			      get{
        			return "lesson_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: mentors
        /// Primary Key: mentor_id
        /// </summary>

        public class MentorsTable: DatabaseTable {
            
            public MentorsTable(IDataProvider provider):base("mentors",provider){
                ClassName = "MentorBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("firstname", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("middlename", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("lastname", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("employee_number", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });
                    
                
                
            }

            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn Firstname{
                get{
                    return this.GetColumn("firstname");
                }
            }
				
   			public static string FirstnameColumn{
			      get{
        			return "firstname";
      			}
		    }
            
            public IColumn Middlename{
                get{
                    return this.GetColumn("middlename");
                }
            }
				
   			public static string MiddlenameColumn{
			      get{
        			return "middlename";
      			}
		    }
            
            public IColumn Lastname{
                get{
                    return this.GetColumn("lastname");
                }
            }
				
   			public static string LastnameColumn{
			      get{
        			return "lastname";
      			}
		    }
            
            public IColumn EmployeeNumber{
                get{
                    return this.GetColumn("employee_number");
                }
            }
				
   			public static string EmployeeNumberColumn{
			      get{
        			return "employee_number";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: mentors_subjects
        /// Primary Key: mentors_subject_id
        /// </summary>

        public class MentorsSubjectsTable: DatabaseTable {
            
            public MentorsSubjectsTable(IDataProvider provider):base("mentors_subjects",provider){
                ClassName = "MentorsSubjectBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("mentors_subject_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn MentorsSubjectId{
                get{
                    return this.GetColumn("mentors_subject_id");
                }
            }
				
   			public static string MentorsSubjectIdColumn{
			      get{
        			return "mentors_subject_id";
      			}
		    }
            
            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: messages_conversations
        /// Primary Key: conversation_id
        /// </summary>

        public class MessagesConversationsTable: DatabaseTable {
            
            public MessagesConversationsTable(IDataProvider provider):base("messages_conversations",provider){
                ClassName = "MessagesConversationBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("conversation_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 255
                });

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("recipients", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("modified", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("locked", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn ConversationId{
                get{
                    return this.GetColumn("conversation_id");
                }
            }
				
   			public static string ConversationIdColumn{
			      get{
        			return "conversation_id";
      			}
		    }
            
            public IColumn Title{
                get{
                    return this.GetColumn("title");
                }
            }
				
   			public static string TitleColumn{
			      get{
        			return "title";
      			}
		    }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn Recipients{
                get{
                    return this.GetColumn("recipients");
                }
            }
				
   			public static string RecipientsColumn{
			      get{
        			return "recipients";
      			}
		    }
            
            public IColumn Modified{
                get{
                    return this.GetColumn("modified");
                }
            }
				
   			public static string ModifiedColumn{
			      get{
        			return "modified";
      			}
		    }
            
            public IColumn Locked{
                get{
                    return this.GetColumn("locked");
                }
            }
				
   			public static string LockedColumn{
			      get{
        			return "locked";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: messages_messages
        /// Primary Key: message_id
        /// </summary>

        public class MessagesMessagesTable: DatabaseTable {
            
            public MessagesMessagesTable(IDataProvider provider):base("messages_messages",provider){
                ClassName = "MessagesMessageBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("message_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("conversation_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 255
                });

                Columns.Add(new DatabaseColumn("body", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 65535
                });

                Columns.Add(new DatabaseColumn("date", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("attachment_type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 24
                });

                Columns.Add(new DatabaseColumn("attachment_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn MessageId{
                get{
                    return this.GetColumn("message_id");
                }
            }
				
   			public static string MessageIdColumn{
			      get{
        			return "message_id";
      			}
		    }
            
            public IColumn ConversationId{
                get{
                    return this.GetColumn("conversation_id");
                }
            }
				
   			public static string ConversationIdColumn{
			      get{
        			return "conversation_id";
      			}
		    }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn Title{
                get{
                    return this.GetColumn("title");
                }
            }
				
   			public static string TitleColumn{
			      get{
        			return "title";
      			}
		    }
            
            public IColumn Body{
                get{
                    return this.GetColumn("body");
                }
            }
				
   			public static string BodyColumn{
			      get{
        			return "body";
      			}
		    }
            
            public IColumn Date{
                get{
                    return this.GetColumn("date");
                }
            }
				
   			public static string DateColumn{
			      get{
        			return "date";
      			}
		    }
            
            public IColumn AttachmentType{
                get{
                    return this.GetColumn("attachment_type");
                }
            }
				
   			public static string AttachmentTypeColumn{
			      get{
        			return "attachment_type";
      			}
		    }
            
            public IColumn AttachmentId{
                get{
                    return this.GetColumn("attachment_id");
                }
            }
				
   			public static string AttachmentIdColumn{
			      get{
        			return "attachment_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: messages_recipients
        /// Primary Key: conversation_id
        /// </summary>

        public class MessagesRecipientsTable: DatabaseTable {
            
            public MessagesRecipientsTable(IDataProvider provider):base("messages_recipients",provider){
                ClassName = "MessagesRecipientBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("conversation_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("inbox_message_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("inbox_updated", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("inbox_read", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("inbox_deleted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("outbox_message_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("outbox_updated", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("outbox_deleted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn ConversationId{
                get{
                    return this.GetColumn("conversation_id");
                }
            }
				
   			public static string ConversationIdColumn{
			      get{
        			return "conversation_id";
      			}
		    }
            
            public IColumn InboxMessageId{
                get{
                    return this.GetColumn("inbox_message_id");
                }
            }
				
   			public static string InboxMessageIdColumn{
			      get{
        			return "inbox_message_id";
      			}
		    }
            
            public IColumn InboxUpdated{
                get{
                    return this.GetColumn("inbox_updated");
                }
            }
				
   			public static string InboxUpdatedColumn{
			      get{
        			return "inbox_updated";
      			}
		    }
            
            public IColumn InboxRead{
                get{
                    return this.GetColumn("inbox_read");
                }
            }
				
   			public static string InboxReadColumn{
			      get{
        			return "inbox_read";
      			}
		    }
            
            public IColumn InboxDeleted{
                get{
                    return this.GetColumn("inbox_deleted");
                }
            }
				
   			public static string InboxDeletedColumn{
			      get{
        			return "inbox_deleted";
      			}
		    }
            
            public IColumn OutboxMessageId{
                get{
                    return this.GetColumn("outbox_message_id");
                }
            }
				
   			public static string OutboxMessageIdColumn{
			      get{
        			return "outbox_message_id";
      			}
		    }
            
            public IColumn OutboxUpdated{
                get{
                    return this.GetColumn("outbox_updated");
                }
            }
				
   			public static string OutboxUpdatedColumn{
			      get{
        			return "outbox_updated";
      			}
		    }
            
            public IColumn OutboxDeleted{
                get{
                    return this.GetColumn("outbox_deleted");
                }
            }
				
   			public static string OutboxDeletedColumn{
			      get{
        			return "outbox_deleted";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: question_types
        /// Primary Key: question_type_id
        /// </summary>

        public class QuestionTypesTable: DatabaseTable {
            
            public QuestionTypesTable(IDataProvider provider):base("question_types",provider){
                ClassName = "QuestionTypeBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("question_type_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("question_type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 45
                });
                    
                
                
            }

            public IColumn QuestionTypeId{
                get{
                    return this.GetColumn("question_type_id");
                }
            }
				
   			public static string QuestionTypeIdColumn{
			      get{
        			return "question_type_id";
      			}
		    }
            
            public IColumn QuestionType{
                get{
                    return this.GetColumn("question_type");
                }
            }
				
   			public static string QuestionTypeColumn{
			      get{
        			return "question_type";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: questions
        /// Primary Key: question_id
        /// </summary>

        public class QuestionsTable: DatabaseTable {
            
            public QuestionsTable(IDataProvider provider):base("questions",provider){
                ClassName = "QuestionBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("question_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("quiz_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("answer", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("question", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 300
                });

                Columns.Add(new DatabaseColumn("question_type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("choice_id_answer", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn QuestionId{
                get{
                    return this.GetColumn("question_id");
                }
            }
				
   			public static string QuestionIdColumn{
			      get{
        			return "question_id";
      			}
		    }
            
            public IColumn QuizId{
                get{
                    return this.GetColumn("quiz_id");
                }
            }
				
   			public static string QuizIdColumn{
			      get{
        			return "quiz_id";
      			}
		    }
            
            public IColumn Answer{
                get{
                    return this.GetColumn("answer");
                }
            }
				
   			public static string AnswerColumn{
			      get{
        			return "answer";
      			}
		    }
            
            public IColumn Question{
                get{
                    return this.GetColumn("question");
                }
            }
				
   			public static string QuestionColumn{
			      get{
        			return "question";
      			}
		    }
            
            public IColumn QuestionType{
                get{
                    return this.GetColumn("question_type");
                }
            }
				
   			public static string QuestionTypeColumn{
			      get{
        			return "question_type";
      			}
		    }
            
            public IColumn ChoiceIdAnswer{
                get{
                    return this.GetColumn("choice_id_answer");
                }
            }
				
   			public static string ChoiceIdAnswerColumn{
			      get{
        			return "choice_id_answer";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: questions_answers
        /// Primary Key: questions_answer_id
        /// </summary>

        public class QuestionsAnswersTable: DatabaseTable {
            
            public QuestionsAnswersTable(IDataProvider provider):base("questions_answers",provider){
                ClassName = "QuestionsAnswerBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("questions_answer_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("question_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("choice_answer_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("student_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("quiz_student_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn QuestionsAnswerId{
                get{
                    return this.GetColumn("questions_answer_id");
                }
            }
				
   			public static string QuestionsAnswerIdColumn{
			      get{
        			return "questions_answer_id";
      			}
		    }
            
            public IColumn QuestionId{
                get{
                    return this.GetColumn("question_id");
                }
            }
				
   			public static string QuestionIdColumn{
			      get{
        			return "question_id";
      			}
		    }
            
            public IColumn ChoiceAnswerId{
                get{
                    return this.GetColumn("choice_answer_id");
                }
            }
				
   			public static string ChoiceAnswerIdColumn{
			      get{
        			return "choice_answer_id";
      			}
		    }
            
            public IColumn StudentId{
                get{
                    return this.GetColumn("student_id");
                }
            }
				
   			public static string StudentIdColumn{
			      get{
        			return "student_id";
      			}
		    }
            
            public IColumn QuizStudentId{
                get{
                    return this.GetColumn("quiz_student_id");
                }
            }
				
   			public static string QuizStudentIdColumn{
			      get{
        			return "quiz_student_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: quiz
        /// Primary Key: quiz_id
        /// </summary>

        public class QuizTable: DatabaseTable {
            
            public QuizTable(IDataProvider provider):base("quiz",provider){
                ClassName = "QuizBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("quiz_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("time_limit", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("total_items", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 300
                });

                Columns.Add(new DatabaseColumn("passing_score", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("date_posted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn QuizId{
                get{
                    return this.GetColumn("quiz_id");
                }
            }
				
   			public static string QuizIdColumn{
			      get{
        			return "quiz_id";
      			}
		    }
            
            public IColumn TimeLimit{
                get{
                    return this.GetColumn("time_limit");
                }
            }
				
   			public static string TimeLimitColumn{
			      get{
        			return "time_limit";
      			}
		    }
            
            public IColumn TotalItems{
                get{
                    return this.GetColumn("total_items");
                }
            }
				
   			public static string TotalItemsColumn{
			      get{
        			return "total_items";
      			}
		    }
            
            public IColumn Description{
                get{
                    return this.GetColumn("description");
                }
            }
				
   			public static string DescriptionColumn{
			      get{
        			return "description";
      			}
		    }
            
            public IColumn PassingScore{
                get{
                    return this.GetColumn("passing_score");
                }
            }
				
   			public static string PassingScoreColumn{
			      get{
        			return "passing_score";
      			}
		    }
            
            public IColumn DatePosted{
                get{
                    return this.GetColumn("date_posted");
                }
            }
				
   			public static string DatePostedColumn{
			      get{
        			return "date_posted";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: quiz_students
        /// Primary Key: quiz_student_id
        /// </summary>

        public class QuizStudentsTable: DatabaseTable {
            
            public QuizStudentsTable(IDataProvider provider):base("quiz_students",provider){
                ClassName = "QuizStudentBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("quiz_student_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("max_question_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("random_key", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 500
                });

                Columns.Add(new DatabaseColumn("score", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("total_items", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("date_started", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("date_end", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("quiz_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("student_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("done", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn QuizStudentId{
                get{
                    return this.GetColumn("quiz_student_id");
                }
            }
				
   			public static string QuizStudentIdColumn{
			      get{
        			return "quiz_student_id";
      			}
		    }
            
            public IColumn MaxQuestionId{
                get{
                    return this.GetColumn("max_question_id");
                }
            }
				
   			public static string MaxQuestionIdColumn{
			      get{
        			return "max_question_id";
      			}
		    }
            
            public IColumn RandomKey{
                get{
                    return this.GetColumn("random_key");
                }
            }
				
   			public static string RandomKeyColumn{
			      get{
        			return "random_key";
      			}
		    }
            
            public IColumn Score{
                get{
                    return this.GetColumn("score");
                }
            }
				
   			public static string ScoreColumn{
			      get{
        			return "score";
      			}
		    }
            
            public IColumn TotalItems{
                get{
                    return this.GetColumn("total_items");
                }
            }
				
   			public static string TotalItemsColumn{
			      get{
        			return "total_items";
      			}
		    }
            
            public IColumn DateStarted{
                get{
                    return this.GetColumn("date_started");
                }
            }
				
   			public static string DateStartedColumn{
			      get{
        			return "date_started";
      			}
		    }
            
            public IColumn DateEnd{
                get{
                    return this.GetColumn("date_end");
                }
            }
				
   			public static string DateEndColumn{
			      get{
        			return "date_end";
      			}
		    }
            
            public IColumn QuizId{
                get{
                    return this.GetColumn("quiz_id");
                }
            }
				
   			public static string QuizIdColumn{
			      get{
        			return "quiz_id";
      			}
		    }
            
            public IColumn StudentId{
                get{
                    return this.GetColumn("student_id");
                }
            }
				
   			public static string StudentIdColumn{
			      get{
        			return "student_id";
      			}
		    }
            
            public IColumn Done{
                get{
                    return this.GetColumn("done");
                }
            }
				
   			public static string DoneColumn{
			      get{
        			return "done";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: quiz_subjects
        /// Primary Key: quiz_subject_id
        /// </summary>

        public class QuizSubjectsTable: DatabaseTable {
            
            public QuizSubjectsTable(IDataProvider provider):base("quiz_subjects",provider){
                ClassName = "QuizSubjectBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("quiz_subject_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("quiz_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn QuizSubjectId{
                get{
                    return this.GetColumn("quiz_subject_id");
                }
            }
				
   			public static string QuizSubjectIdColumn{
			      get{
        			return "quiz_subject_id";
      			}
		    }
            
            public IColumn QuizId{
                get{
                    return this.GetColumn("quiz_id");
                }
            }
				
   			public static string QuizIdColumn{
			      get{
        			return "quiz_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: sections
        /// Primary Key: sections_id
        /// </summary>

        public class SectionsTable: DatabaseTable {
            
            public SectionsTable(IDataProvider provider):base("sections",provider){
                ClassName = "SectionBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("sections_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("section_name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });
                    
                
                
            }

            public IColumn SectionsId{
                get{
                    return this.GetColumn("sections_id");
                }
            }
				
   			public static string SectionsIdColumn{
			      get{
        			return "sections_id";
      			}
		    }
            
            public IColumn SectionName{
                get{
                    return this.GetColumn("section_name");
                }
            }
				
   			public static string SectionNameColumn{
			      get{
        			return "section_name";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: sections_subjects
        /// Primary Key: sections_subject_id
        /// </summary>

        public class SectionsSubjectsTable: DatabaseTable {
            
            public SectionsSubjectsTable(IDataProvider provider):base("sections_subjects",provider){
                ClassName = "SectionsSubjectBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("sections_subject_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("section_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SectionsSubjectId{
                get{
                    return this.GetColumn("sections_subject_id");
                }
            }
				
   			public static string SectionsSubjectIdColumn{
			      get{
        			return "sections_subject_id";
      			}
		    }
            
            public IColumn SectionId{
                get{
                    return this.GetColumn("section_id");
                }
            }
				
   			public static string SectionIdColumn{
			      get{
        			return "section_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: students
        /// Primary Key: student_id
        /// </summary>

        public class StudentsTable: DatabaseTable {
            
            public StudentsTable(IDataProvider provider):base("students",provider){
                ClassName = "StudentBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("student_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt64,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("firstname", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("middlename", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("lastname", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt64,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("student_number", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }

            public IColumn StudentId{
                get{
                    return this.GetColumn("student_id");
                }
            }
				
   			public static string StudentIdColumn{
			      get{
        			return "student_id";
      			}
		    }
            
            public IColumn Firstname{
                get{
                    return this.GetColumn("firstname");
                }
            }
				
   			public static string FirstnameColumn{
			      get{
        			return "firstname";
      			}
		    }
            
            public IColumn Middlename{
                get{
                    return this.GetColumn("middlename");
                }
            }
				
   			public static string MiddlenameColumn{
			      get{
        			return "middlename";
      			}
		    }
            
            public IColumn Lastname{
                get{
                    return this.GetColumn("lastname");
                }
            }
				
   			public static string LastnameColumn{
			      get{
        			return "lastname";
      			}
		    }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn StudentNumber{
                get{
                    return this.GetColumn("student_number");
                }
            }
				
   			public static string StudentNumberColumn{
			      get{
        			return "student_number";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: subjects
        /// Primary Key: subject_id
        /// </summary>

        public class SubjectsTable: DatabaseTable {
            
            public SubjectsTable(IDataProvider provider):base("subjects",provider){
                ClassName = "SubjectBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_code", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("subject_name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }

            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
            public IColumn SubjectCode{
                get{
                    return this.GetColumn("subject_code");
                }
            }
				
   			public static string SubjectCodeColumn{
			      get{
        			return "subject_code";
      			}
		    }
            
            public IColumn SubjectName{
                get{
                    return this.GetColumn("subject_name");
                }
            }
				
   			public static string SubjectNameColumn{
			      get{
        			return "subject_name";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: subjects_enrolled
        /// Primary Key: subject_enrolled_id
        /// </summary>

        public class SubjectsEnrolledTable: DatabaseTable {
            
            public SubjectsEnrolledTable(IDataProvider provider):base("subjects_enrolled",provider){
                ClassName = "SubjectsEnrolledBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("subject_enrolled_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("subject_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("mentor_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("enabled", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn SubjectEnrolledId{
                get{
                    return this.GetColumn("subject_enrolled_id");
                }
            }
				
   			public static string SubjectEnrolledIdColumn{
			      get{
        			return "subject_enrolled_id";
      			}
		    }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn SubjectId{
                get{
                    return this.GetColumn("subject_id");
                }
            }
				
   			public static string SubjectIdColumn{
			      get{
        			return "subject_id";
      			}
		    }
            
            public IColumn MentorId{
                get{
                    return this.GetColumn("mentor_id");
                }
            }
				
   			public static string MentorIdColumn{
			      get{
        			return "mentor_id";
      			}
		    }
            
            public IColumn Enabled{
                get{
                    return this.GetColumn("enabled");
                }
            }
				
   			public static string EnabledColumn{
			      get{
        			return "enabled";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: users
        /// Primary Key: user_id
        /// </summary>

        public class UsersTable: DatabaseTable {
            
            public UsersTable(IDataProvider provider):base("users",provider){
                ClassName = "UserBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("user_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.UInt64,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("user_type_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("username", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("password", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });

                Columns.Add(new DatabaseColumn("password_salt", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 15
                });

                Columns.Add(new DatabaseColumn("user_primary_email", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("user_alternate_email", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("user_last_visit", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("user_login_attempts", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt16,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("last_user_activity", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("total_subject_count", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("available_subject_count", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("thumb_image_name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });
                    
                
                
            }

            public IColumn UserId{
                get{
                    return this.GetColumn("user_id");
                }
            }
				
   			public static string UserIdColumn{
			      get{
        			return "user_id";
      			}
		    }
            
            public IColumn UserTypeId{
                get{
                    return this.GetColumn("user_type_id");
                }
            }
				
   			public static string UserTypeIdColumn{
			      get{
        			return "user_type_id";
      			}
		    }
            
            public IColumn Username{
                get{
                    return this.GetColumn("username");
                }
            }
				
   			public static string UsernameColumn{
			      get{
        			return "username";
      			}
		    }
            
            public IColumn Password{
                get{
                    return this.GetColumn("password");
                }
            }
				
   			public static string PasswordColumn{
			      get{
        			return "password";
      			}
		    }
            
            public IColumn PasswordSalt{
                get{
                    return this.GetColumn("password_salt");
                }
            }
				
   			public static string PasswordSaltColumn{
			      get{
        			return "password_salt";
      			}
		    }
            
            public IColumn UserPrimaryEmail{
                get{
                    return this.GetColumn("user_primary_email");
                }
            }
				
   			public static string UserPrimaryEmailColumn{
			      get{
        			return "user_primary_email";
      			}
		    }
            
            public IColumn UserAlternateEmail{
                get{
                    return this.GetColumn("user_alternate_email");
                }
            }
				
   			public static string UserAlternateEmailColumn{
			      get{
        			return "user_alternate_email";
      			}
		    }
            
            public IColumn UserLastVisit{
                get{
                    return this.GetColumn("user_last_visit");
                }
            }
				
   			public static string UserLastVisitColumn{
			      get{
        			return "user_last_visit";
      			}
		    }
            
            public IColumn UserLoginAttempts{
                get{
                    return this.GetColumn("user_login_attempts");
                }
            }
				
   			public static string UserLoginAttemptsColumn{
			      get{
        			return "user_login_attempts";
      			}
		    }
            
            public IColumn LastUserActivity{
                get{
                    return this.GetColumn("last_user_activity");
                }
            }
				
   			public static string LastUserActivityColumn{
			      get{
        			return "last_user_activity";
      			}
		    }
            
            public IColumn TotalSubjectCount{
                get{
                    return this.GetColumn("total_subject_count");
                }
            }
				
   			public static string TotalSubjectCountColumn{
			      get{
        			return "total_subject_count";
      			}
		    }
            
            public IColumn AvailableSubjectCount{
                get{
                    return this.GetColumn("available_subject_count");
                }
            }
				
   			public static string AvailableSubjectCountColumn{
			      get{
        			return "available_subject_count";
      			}
		    }
            
            public IColumn ThumbImageName{
                get{
                    return this.GetColumn("thumb_image_name");
                }
            }
				
   			public static string ThumbImageNameColumn{
			      get{
        			return "thumb_image_name";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: users_permission
        /// Primary Key: userpermission_id
        /// </summary>

        public class UsersPermissionTable: DatabaseTable {
            
            public UsersPermissionTable(IDataProvider provider):base("users_permission",provider){
                ClassName = "UsersPermissionBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("userpermission_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("usertype_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("accountpermission_id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("set_permission", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.UInt32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }

            public IColumn UserpermissionId{
                get{
                    return this.GetColumn("userpermission_id");
                }
            }
				
   			public static string UserpermissionIdColumn{
			      get{
        			return "userpermission_id";
      			}
		    }
            
            public IColumn UsertypeId{
                get{
                    return this.GetColumn("usertype_id");
                }
            }
				
   			public static string UsertypeIdColumn{
			      get{
        			return "usertype_id";
      			}
		    }
            
            public IColumn AccountpermissionId{
                get{
                    return this.GetColumn("accountpermission_id");
                }
            }
				
   			public static string AccountpermissionIdColumn{
			      get{
        			return "accountpermission_id";
      			}
		    }
            
            public IColumn SetPermission{
                get{
                    return this.GetColumn("set_permission");
                }
            }
				
   			public static string SetPermissionColumn{
			      get{
        			return "set_permission";
      			}
		    }
            
                    
        }
        
        /// <summary>
        /// Table: users_type
        /// Primary Key: usertype_id
        /// </summary>

        public class UsersTypeTable: DatabaseTable {
            
            public UsersTypeTable(IDataProvider provider):base("users_type",provider){
                ClassName = "UsersTypeBase";
                SchemaName = "";
                

                Columns.Add(new DatabaseColumn("usertype_id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("user_type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }

            public IColumn UsertypeId{
                get{
                    return this.GetColumn("usertype_id");
                }
            }
				
   			public static string UsertypeIdColumn{
			      get{
        			return "usertype_id";
      			}
		    }
            
            public IColumn UserType{
                get{
                    return this.GetColumn("user_type");
                }
            }
				
   			public static string UserTypeColumn{
			      get{
        			return "user_type";
      			}
		    }
            
                    
        }
        
}